Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

636140 Views

Latest files of /cody/swapnilsparsh/30DaysOfJavaScript/198 - Balloon Game

README.md cody/swapnilsparsh/30DaysOfJavaScript/198 - Balloon Game/README.md
170 Views
0 Comments
# Balloon Game

## Tech Used
HTML ,CSS, JavaScript

## About Project
- Hover the Mouse Over The Balloon And Burst it.
- Burst More Score More
style.css cody/swapnilsparsh/30DaysOfJavaScript/198 - Balloon Game/style.css
92 Views
0 Comments
body{
background-color: brown;
}
h1{
text-align: center;
color: azure;
}

index.html cody/swapnilsparsh/30DaysOfJavaScript/198 - Balloon Game/index.html
279 Views
0 Comments
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Balloon Game</title>
<link rel="stylesheet" href="style.css">
script.js cody/swapnilsparsh/30DaysOfJavaScript/198 - Balloon Game/script.js
165 Views
0 Comments
const container = document.querySelector('.game');
const scoreBoard = maker(container,'div','scoreBoard','SCORE');
const gameBoard = maker(container,'div','gameBoard','GAMEBOARD');
const message = maker(container,'div','message','MESSAGE');
const items = ["&#8509;","&#9730;","&#9731;","&#9728;","&#9732;","&#9733;","&#9743;","&#9762;"];
const game = {score:0,ani:{},total:0,counter:0,ready:0,bad:0};
const btn = maker(container,'button','btn','Click to Start');
btn.addEventListener('click',startGame);